import request from '@/utils/request'

// 查询药品申领记录详情列表 (分页)
export function selectPageDrugApplyForDetail(query) {
  return request({
    url: '/drug/drugApplyForDetail/selectPage',
    method: 'get',
    params: query
  })
}

// 查询药品申领记录详情列表 (不分页)
export function listDrugApplyForDetail(query) {
  return request({
    url: '/drug/drugApplyForDetail/list',
    method: 'get',
    params: query
  })
}

// 查询药品申领记录详情详细
export function getDrugApplyForDetail(updateBy) {
  return request({
    url: '/drug/drugApplyForDetail/' + updateBy,
    method: 'get'
  })
}

// 新增药品申领记录详情
export function addDrugApplyForDetail(data) {
  return request({
    url: '/drug/drugApplyForDetail',
    method: 'post',
    data: data
  })
}

// 修改药品申领记录详情
export function updateDrugApplyForDetail(data) {
  return request({
    url: '/drug/drugApplyForDetail',
    method: 'put',
    data: data
  })
}

// 删除药品申领记录详情
export function delDrugApplyForDetail(updateBy) {
  return request({
    url: '/drug/drugApplyForDetail/' + updateBy,
    method: 'delete'
  })
}
